//
//  CHRecordFile.h
//  SCCAProofSdk
//
//  Created by cyptt on 2022/3/14.
//  简单的视频录制 输出 AVCaptureMovieFileOutput

#import <Foundation/Foundation.h>
#import "CHBaseRecord.h"
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface CHRecordFile : CHBaseRecord



/*
 开启录制
 */
-(void)startRecordFilePath:(nullable NSString *)filePath isSaveAblum:(BOOL)isSaveAblum successBlock:(void (^ _Nonnull)(NSURL * filePath))successBlock failBlock:(void (^ _Nonnull)(NSError * error))failBlock;

/*
 停止录制
 */
-(void)stop;

/*
 开启闪光灯
 */
-(void)openFlashSuccessBlock:(void (^ _Nonnull)(BOOL isSuccess))successBlock failBlock:(void (^ _Nonnull)(NSString * errMsg))failBlock;

/*
 关闭闪光灯
 */
-(void)closeFlash;

/*
 翻转摄像头
 */
-(void)transferCapture;
@end

NS_ASSUME_NONNULL_END
